package com.lanfan.mapper;

import com.lanfan.entity.Todaymenu;
import com.lanfan.entity.TodaymenuExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TodaymenuMapper {
    long countByExample(TodaymenuExample example);

    int deleteByExample(TodaymenuExample example);

    int deleteByPrimaryKey(Integer tid);

    int insert(Todaymenu record);

    int insertSelective(Todaymenu record);

    List<Todaymenu> selectByExample(TodaymenuExample example);

    Todaymenu selectByPrimaryKey(Integer tid);

    int updateByExampleSelective(@Param("record") Todaymenu record, @Param("example") TodaymenuExample example);

    int updateByExample(@Param("record") Todaymenu record, @Param("example") TodaymenuExample example);

    int updateByPrimaryKeySelective(Todaymenu record);

    int updateByPrimaryKey(Todaymenu record);
    // 新增方法：增加热度数
    int increasePopularity(@Param("tid") Integer tid);
    List<Todaymenu> searchMenusExact(@Param("keyword") String keyword);}